@keyframes title-animation {
  0% {
    font-size: 32rpx;
  }
  100% {
    font-size: 36rpx;
  }
}

.login-wrap {
  height: 100vh;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(135deg, #FD3771 0%, #F61B11 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 9999;
  padding: 40rpx;
  box-sizing: border-box;
  overflow: auto;
}

.login-container {
  width: 100%;
  max-width: 600rpx;
  background: white;
  border-radius: 20rpx;
  padding: 60rpx 40rpx;
  box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: 60rpx;

  .logo-placeholder {
    width: 120rpx;
    height: 120rpx;
    margin-bottom: 30rpx;
    background: linear-gradient(135deg, #FD3771 0%, #F61B11 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30rpx auto;

    .logo-text {
      color: white;
      font-size: 24rpx;
      font-weight: bold;
    }
  }

  .title {
    display: block;
    font-size: 48rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 20rpx;
  }

  .subtitle {
    display: block;
    font-size: 28rpx;
    color: #666;
  }
}

.login-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40rpx;
  border-bottom: 1rpx solid #eee;

  .tab-item {
    padding: 10rpx 20rpx;
    font-size: 32rpx;
    color: #666;
    font-weight: bold;
    border-bottom: 2rpx solid transparent;

    &.active {
      color: #FD3771;
      border-bottom-color: #FD3771;
    }
  }
}

.head-box {
  .head-title {
    min-width: 160rpx;
    font-size: 36rpx;
    font-weight: bold;
    color: #333333;
    line-height: 36rpx;
  }
  .head-title-active {
    width: 160rpx;
    font-size: 32rpx;
    font-weight: 600;
    color: #999;
    line-height: 36rpx;
  }
  .head-title-animation {
    animation-name: title-animation;
    animation-duration: 0.1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
  }
  .head-title-line {
    position: relative;
    &::before {
      content: '';
      width: 1rpx;
      height: 34rpx;
      background-color: #e4e7ed;
      position: absolute;
      left: -30rpx;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .head-subtitle {
    font-size: 26rpx;
    font-weight: 400;
    color: #afb6c0;
    text-align: left;
    display: flex;
  }
}

// .code-btn[disabled] {
// 	background-color: #fff;
// }
.code-btn-start {
  width: 160rpx;
  height: 56rpx;
  line-height: normal;
  border: 2rpx solid var(--ui-BG-Main);
  border-radius: 28rpx;
  font-size: 26rpx;
  font-weight: 400;
  color: var(--ui-BG-Main);
  opacity: 1;
}

.forgot-btn {
  width: 160rpx;
  line-height: 56rpx;
  font-size: 30rpx;
  font-weight: 500;
  color: #999;
}

.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40rpx;
}

.login-btn-start {
  background: linear-gradient(135deg, #FD3771 0%, #F61B11 100%);
  color: white;
  border: none;
  border-radius: 8rpx;
  padding: 8rpx 24rpx;
  font-size: 26rpx;
  font-weight: bold;
  height: 60rpx;
  line-height: 44rpx;
  width: 100%;
  max-width: 400rpx;
}

.type-btn {
  padding: 20rpx;
  margin: 40rpx auto;
  width: 200rpx;
  font-size: 30rpx;
  font-weight: 500;
  color: #999999;
}

.auto-login-box {
  width: 100%;
  .auto-login-btn {
    width: 68rpx;
    height: 68rpx;
    border-radius: 50%;
    margin: 0 30rpx;
  }
  .auto-login-img {
    width: 68rpx;
    height: 68rpx;
    border-radius: 50%;
  }
}

.agreement-box {
  display: flex;
  align-items: center;
  margin-top: 40rpx;
  padding-left: 10rpx;

  .protocol-check {
    transform: scale(0.7);
  }
  
  .agreement-text {
    font-size: 24rpx;
    color: #666;
    margin-left: 10rpx;
    
    .tcp-text {
      color: #FD3771;
    }
  }
}

.register-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40rpx;
  padding-top: 20rpx;
  border-top: 1rpx solid #eee;

  .register-left {
    display: flex;
    align-items: center;
  }

  .register-text {
    font-size: 24rpx;
    color: #666;
  }

  .register-link {
    font-size: 24rpx;
    color: #FD3771;
    text-decoration: underline;
    margin-left: 10rpx;
  }

  .forgot-section {
    display: flex;
    align-items: center;
  }

  .forgot-link {
    font-size: 24rpx;
    color: #FD3771;
    text-decoration: underline;
  }
}

// 修改密码
.editPwd-btn-box {
  .save-btn {
    width: 690rpx;
    line-height: 70rpx;
    background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
    border-radius: 35rpx;
    font-size: 28rpx;
    font-weight: 500;
    color: #ffffff;
  }
  .forgot-btn {
    width: 690rpx;
    line-height: 70rpx;
    font-size: 28rpx;
    font-weight: 500;
    color: #999999;
  }
}
